package cn.wolfcode.luowowo.article.query;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;
@Setter
@Getter
public class DestinationCondition {
    private int min;
    private int max;
    public static final Map<Integer,DestinationCondition> dayMap = new HashMap();

    public DestinationCondition(int min, int max){
        this.min = min;
        this.max = max;
    }
    static {
        dayMap.put( -1, null );
        dayMap.put( 1, new DestinationCondition( 2, 3 ) );
        dayMap.put( 2, new DestinationCondition( 4, 5 ) );
        dayMap.put( 3, new DestinationCondition( 6,9 ) );
        dayMap.put( 4, new DestinationCondition( 10, Integer.MAX_VALUE ) );
    }
}
